import { request } from '@/utils'

export default {
  // 登录
  login: data =>
    request.post(
      '/account/login',
      {
        ...data,
        account: data.username,
        model: '1',
      },
      { needToken: false },
    ),
  // 获取用户信息
  getUserByToken: token => request.get(`/account/get/token/${token}`),
}
